package com.ubxtech.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 解析服务中所有的url的信息
 * @author Victor.Xiao
 * @since 2023-09-05 15:20
 **/
@Data
@Schema(title = "RequestMappingDTO", description = "接口信息")
public class RequestMappingDTO {
    @Schema(title="描述")
    protected String description;
    @Schema(title="接口地址")
    protected String path;
    @Schema(title="唯一编码,serviceId + path的md5值")
    protected String code;
    @Schema(title="controller的类路径")
    protected String className;
    @Schema(title="controller的方法名")
    protected String methodName;
    @Schema(title="请求类型,post,get")
    protected String method;
    @Schema(title="服务id,spring.application.name")
    protected String serviceId;
    @Schema(title="返回对象类路径")
    protected String returnType;
    @Schema(title="是否需要鉴权,1:需要,0:不需要")
    protected String permissionFlag;
    @Schema(title="是否sign方式鉴权,1:是,0:否")
    protected String clientAuthorizationFlag;
    @Schema(title="是否是回调方法")
    protected String callbackFlag;
    @Schema(title="回调消息类型")
    protected Integer callbackMsgType;
    @Schema(title="回调订阅的消息topic")
    protected String callbackMsgSubTopic;
    @Schema(title="内部接口标志")
    protected Integer innerApi;
    @Schema(title="防重提交配置")
    protected RequestMappingRepeatSubmitConfigDTO repeatSubmitConfig;

}
